home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / balones.swf / scripts / DefineSprite_330 / frame_2 / DoAction.as
Encoding:
Text File  |  2013-04-24  |  680 b   |  28 lines

  1. if(_root.Game_play)
  2. {
  3.    _root.mcTime2.prevFrame();
  4.    _root.cnt_num = _root.cnt_num + 1;
  5.    if(_root.cnt_num >= 3)
  6.    {
  7.       _root.recombo.gotoAndPlay(2);
  8.       _root.cnt_num = 0;
  9.       _root.mission_num--;
  10.       _root.Wnum = _root.Wnum + 1;
  11.       _root.combo += 1;
  12.       if(_root.mission_num <= 0)
  13.       {
  14.          _root.Game_play = false;
  15.          _root.gara._visible = true;
  16.          _root.mission_num = 0;
  17.       }
  18.       if(_root.combo > 1)
  19.       {
  20.          _root.Score += 10 * _root.combo;
  21.          _root.recombo.gotoAndPlay(2);
  22.          _root.bube.gotoAndStop("combo");
  23.          _root.combo_obj.play();
  24.       }
  25.    }
  26. }
  27. _root.gara._visible = true;
  28.